#include <stdlib.h>
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <pthread.h>
#include <unistd.h>
#include "cli_const.h"
#include "cli_resp.h"

#define FTP_CMD_LEN 5 //length of an ftp command

extern RESP *t0AndT1Buf;
extern pthread_mutex_t mT0AndT1;
extern pthread_cond_t t0AndT1BufRdy;

extern bool shouldExit;
extern pthread_mutex_t mShouldExit;

extern bool needsDataSock;
extern pthread_cond_t enterPasvMode;
extern pthread_mutex_t dummyMutex;



extern int cmd_socket;

//will hold the size of the file currently being downloaded
int fileSize = -1;
extern pthread_mutex_t mFileSize;


RESP *sendAndReceive(char*, int);
bool enterPassiveMode();

